import { Bmobs } from "../plugins/bmob";
import { Service,Inject } from "typedi";

@Service()
export class NewsDao extends Bmobs {
	public async getNewsDao (): Promise<Array<Object>> {
		this.setTableName("couresNews");
		this.query.limit(2);
		this.query.order("-createdAt");
		return await this.QueryAll();
	}
}